<?php

/*

  Treasure – Prize	$0*

  Worth $2.
  When you play this, +$1 per unused Action you have (Action, not Action card).

 */

class Diadem extends Card implements iTreasure, iPrize {

    public function __construct() {
        parent::__construct("Diadem", 0);
        $this->undoPlay = false;
        $this->undoBuy = false;
    }

    public function getDescription() {
        return array(
            "Worth $2",
            "When you play this, +$1 per unused Action you have (Action, not Action card).");
    }
    
    public function autoPlayNum(Game $game) {
        return 5;
    }
    
    public function getMoneyValue(Game $game) {
        $numberOfActions = $game->getActions();
        $coins = 2 + $numberOfActions;
         ScreenDisplay::addScreenMessage($game, true, "get +$coins$","gets +$coins$");

        return $coins;
    }

}

?>